package core.profile.helper;

public class UserType {

	private static final int visitor = 1;
	private static final int propManager = 2;
	private static final int owner = 3;
	private static final int admin = 4;
	
	public static int getUserTypeId(String userType)
	{
		int userTypeId = -1 ;
		if(userType != null)
		{
			if(userType.equals("Admin"))
			{
				userTypeId =  admin ;
			}
			else if(userType.equals("Property Manager"))
			{
				userTypeId =  propManager ;
			}
			else if(userType.equals("Owner"))
			{
				userTypeId =  owner ;
			}
			else
			{
				userTypeId =  visitor ;
			}
		}
		return userTypeId ;
	}
}
